<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>手风琴菜单示例</title>
    <link rel="stylesheet" href="accordion.css">
    <!-- 引入Font Awesome库 -->
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css">
</head>
<body>
    <div class="accordion">
        <div class="accordion-item">
            <button class="accordion-header"><i class="fas fa-home"></i> 菜单项 1</button>
            <div class="accordion-content">
                <p>这是菜单项 1 的内容。</p>
            </div>
        </div>
        <div class="accordion-item">
            <button class="accordion-header"><i class="fas fa-info-circle"></i> 菜单项 2</button>
            <div class="accordion-content">
                <p>这是菜单项 2 的内容。</p>
            </div>
        </div>
        <div class="accordion-item">
            <button class="accordion-header"><i class="fas fa-cogs"></i> 菜单项 3</button>
            <div class="accordion-content">
                <p>这是菜单项 3 的内容。</p>
            </div>
        </div>
    </div>
    <script src="accordion.js"></script>
</body>
</html>